package org.zbclan.bf2.rcon;

import java.io.Serializable;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

import org.zbclan.bf2.rcon.service.PersistenceService;
import org.zbclan.bf2.rcon.service.PersistenceServiceImpl;

import com.romeo_foxtrot.labs.vaadin.AppRunner;

/**
 * 应用程序资源中心。使用Vaadin实现用户界面。
 * 
 * @author renfeng
 * 
 */
public class BF2RconAppRunner extends AppRunner<BF2RconApp> implements
		Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2523721065651391152L;

	// private static final Logger logger = LoggerFactory
	// .getLogger(BF2RconAppRunner.class);

	public static final ScheduledExecutorService SCHEDULED_EXECUTOR = Executors
			.newSingleThreadScheduledExecutor(new DaemonThreadFactory(
					"scheduled"));

	public static final PersistenceService PERSISTENCE = new PersistenceServiceImpl();

	public BF2RconAppRunner(BF2RconApp app) {
		super(app);
	}
}
